package com.wanxin.car.carmng.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.wanxin.car.util.helper.CodeHelper;

/**
 * 联系人
 * @author lqk
 */
@Entity
@Table(name="tContact")
public class Contact implements Serializable{

	private static final long serialVersionUID = 1L;
	

	@Id
	@GeneratedValue(generator="my")
	@GenericGenerator(name="my", strategy="uuid")
	@Column(name="cContactID")
	private String id;

	@Column(name="cContactName")
	private String name;

	@Column(name="cContactAddr")
	private String addr;

	@Column(name="cContactTel")
	private String tel;

	@Column(name="cContactMail")
	private String email;
	
	

	public Contact() {
	}
	
	/**
	 * id
	 */
	public Contact( String id) {
		this.id = id;
	}


	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public static void main(String[] args) {
		CodeHelper.printEntity("tContact");
	}
}
